Skip to content

Remove xenmgr idle support#199

Merged
crogers1 merged 2 commits intoOpenXT:masterfrom
jandryuk:rm-xenmgr-idle
Nov 9, 2023
Merged

Remove xenmgr idle support#199
crogers1 merged 2 commits intoOpenXT:masterfrom
jandryuk:rm-xenmgr-idle

Conversation

@jandryuk
Copy link
Copy Markdown
Contributor

@jandryuk jandryuk commented Nov 7, 2022

xenmgr has a thread that polls vglass for idle time every 30 seconds. vglass hardcodes the response to 0, so it is ineffective. xcpmd has idle time support after #197 and OpenXT/xctools#74, so this loop can be removed.

The second commit makes the xenmgr config.ui properties hardcoded. The UI still has some code to query them. That could be removed with futher idl and toolstack-data clean ups. I didn't want to deal with the rebuild from changing the idl, so I didn't attempt that.

At least the first patch is nice since it removes pointless polling and eliminates log spam in console mode (runlevel 3).

xenmgr is polling com.citrix.xenclient.input the "idle time" every 30
seconds.  vGlass just returns 0 for this.  There is a separate idle
signal and xcpmd can use that to implement shutdown.  Just remove this
now unused code from xenmgr.

A side effect of this removal is that xenmgr will no longer print errors
from the failed DBus calls in console mode (runlevel 3).

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
xenmgr no longer acts on the idle time, xcpmd is supposed to handle
that.  This is no longer used and can be removed.  However, the the UI
still queries this.

Make it just return 0 and drop writes.  Later on the UI can remove the
use and this can be removed here and from the IDL.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
@crogers1 crogers1 self-requested a review February 4, 2023 18:51
Copy link
Copy Markdown
Contributor

@crogers1 crogers1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Merging later.

@crogers1 crogers1 merged commit a273e23 into OpenXT:master Nov 9, 2023
@jandryuk jandryuk deleted the rm-xenmgr-idle branch November 9, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants